const Smoke = function (id, name) {
    // 私有属性
    let num = 0;
    // 共有属性
    this.id = id;
    // 私有方法
    function checkId() {
        return true;
    }

    this.getName = function () {
        return this.name;
    };
    this.getNum = function () {
        return num;
    };

    this.setName = function (newName) {
        this.name = newName;
    };

    this.Info = function () {
        if (this.id) {
            return `${this.name}___${this.id}`;
        }
    };
};

Smoke.prototype = {
    money: 10,
    other: function () {},
};

debugger;

let smoke = new Smoke(100, "杜鲁门");
console.log("🚀 ~ file: class.js ~ line 32 ~ smoke", smoke.Info());

console.log("---------------------------------------------------------");

console.log("🚀 ~ file: class.js ~ line 32 ~ smoke", smoke.getNum());
